from multiprocessing import Process, Value, Array


def f(i_num, l_num, f_num, d_num, arr):
    i_num.value = 234
    l_num.value = 12345678
    f_num.value = 1.23
    d_num.value = 1.23456
    for i in range(len(arr)):
        arr[i] = arr[i] * arr[i]


if __name__ == "__main__":
    i_num = Value("i", 123)
    l_num = Value("i", 123456)
    f_num = Value("f", 3.14)
    d_num = Value("d", 3.1415926)
    arr = Array("i", range(10))

    proc = Process(target=f, args=((i_num, l_num, f_num, d_num, arr)))
    proc.start()
    proc.join()

    print("i_num:", i_num.value)
    print("l_num:", l_num.value)
    print("f_num:", f_num.value)
    print("d_num:", d_num.value)
    print("arr:", arr[:])
